<?php
error_reporting(E_ALL^ E_NOTICE);
ini_set('display_errors','On');
include_once $_SERVER['DOCUMENT_ROOT']."/math-videos/configure.inc.php";
//include_once $site_path."/header.php";

$username="ima";
$password= "ima2006";

/****************start deleting data********************/
$assetID=30;
if($_REQUEST['assetID']!="")
{
  $assetID=$_REQUEST['assetID'];
}
$ch = curl_init("http://www.mathinstitutes.org/math-videos/metadata/v1/asset/".$assetID); 
$options = array(
 CURLOPT_CUSTOMREQUEST=>'DELETE',
 CURLOPT_RETURNTRANSFER => true,
 CURLOPT_HEADER => true,  //true or false to show header in result
 CURLOPT_USERPWD=>"$username:$password");

// Setting curl options
curl_setopt_array( $ch, $options ); 
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>